module.exports = function(grunt) {

    grunt.initConfig({

        pkg: grunt.file.readJSON('package.json'),


        transport : {

            sffruit : {
                options: {
                   // idleading: '',
                   paths:  [''],
                },

                files : {
                    '.build' : [
                        //分类分组
                        'static_v4/js/app/categorysGroup.js',
                        'static_v4/js/mod/categorysGroup_sea.js',


                        'static_v4/js/mod/public.js',
                        'static_v4/js/mod/baiduCount.js',
                    ]
                }
            }
        },



        concat : {
            sffruit : {

                files : {
                    //分类分组
                    'static_v4/js/minJSConcat/categorysGroup.js':[
                        '.build/static_v4/js/app/categorysGroup.js',
                        '.build/static_v4/js/mod/categorysGroup_sea.js',

                        '.build/static_v4/js/mod/public.js',
                        '.build/static_v4/js/mod/baiduCount.js',
                    ]
                }
            }
        },

        uglify : {
            sffruit : {
                files : {
                    //分类分组
                    'static_v4/js/minJS/categorysGroup.min.js':[
                        'static_v4/js/minJSConcat/categorysGroup.js'
                    ]
                }
            }
        },


    });

    grunt.loadNpmTasks('grunt-cmd-transport');

    grunt.loadNpmTasks('grunt-contrib-concat');

    grunt.loadNpmTasks('grunt-contrib-uglify');

   grunt.registerTask('default', ['transport','concat','uglify']);
    // grunt.registerTask('default', ['transport','concat']);


};